<html>
    <head>

        <meta charset="UTF-8"></meta>
        <title>箭头函数</title>

        <script type="text/javascript">
            function f1(v){
                return v;
            }

            var f2 = v => v;

            function onArrowFunctioin(){
                var v = 3;
                var n1 = f1(v);
                var n2 = f2(v);
                alert(n1 + "\n" + n2);
            }
        </script>
    </head>
    <body>
        <input type="button" value="箭头函数" onclick="onArrowFunctioin()"></input>
    </body>
</html>